import React, { Component } from 'react'
import styles from './Header.module.css'
export default class Header extends Component {
    constructor(props) {
        super(props);
        this.state = {
            msg: "state"
        }
    };
    render() {
        return (
            <div >
                <div className={styles.app}>
                    header
                </div>
                <div id={styles.demo} onClick={this.click.bind(this.state.msg)}>demo</div>
            </div>

        )
    };
    click = (e) =>{
        console.log(e);
        console.log(this);
    }
}
